package com.whpost.service.service.t;

import com.alibaba.fastjson.JSONObject;
import com.whpost.service.dao.t.TAppVersionDao;
import com.whpost.service.entity.t.TAppVersion;
import com.whpost.service.entity.tools.ResultInfo;
import com.whpost.service.service.BaseServices;
import com.whpost.service.tools.ToolBean;
import jakarta.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;
import java.util.UUID;

@Service
public class TAppService extends BaseServices {

    @Resource
    private TAppVersionDao tAppVersionDao;

    public ResultInfo getAppVersion(String loginId) {
        if (StringUtils.isEmpty(loginId)){
            return new ResultInfo(500,"用户信息丢失！",null);
        }else{
            TAppVersion tAppVersion = new TAppVersion();
            tAppVersion = tAppVersionDao.getVersion();
            ResultInfo resultInfo = new ResultInfo(0,"操作成功！",tAppVersion);
            return backRtn(resultInfo,loginId);
        }
    }
}
